package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)" json:"username"`
	Password string `gorm:"type:varchar(50)" json:"password"`
}

type RedBook struct {
	gorm.Model
	Title       string `gorm:"type:varchar(80)" json:"title"`
	Content     string `gorm:"type:varchar(100)" json:"content"`
	ContentBook string `gorm:"type:varchar(100)" json:"contents"`
	Img         string `gorm:"type:varchar(255)" json:"img"`
}
